#ifndef WEATHER_LABLE_H
#define WEATHER_LABLE_H

#include <QWidget>
#include <QLabel>

#include <QColor>
#include <QPen>
#include <QBrush>
#include <QPainter>
#include <QPainterPath>

#include "weatherinfo.h"
#include <QDebug>
#include <QList>
#include <QMouseEvent>

class Weather_lable : public QLabel
{
    Q_OBJECT
public:
    explicit Weather_lable(QWidget *parent = nullptr);
    
    
    void paintEvent(QPaintEvent *event);
    
    void get_weather_temp(QList<Forecast> temp);
    
    // 双击时间
    void mouseDoubleClickEvent(QMouseEvent *event);
    
protected:
    
    
    int  high_temp[10];
    int  low_temp[10];
    
    QPoint high_temp_point[7];
    QPoint low_temp_point[7];
    
    
    
    
signals:
    
};

#endif // WEATHER_LABLE_H
